﻿@model DuocThaiBinh.Models.LoginModel

@{
    ViewBag.Title = "Log in";
}

<div class="col-md-4 col-md-offset-4">
    <div class="login-panel panel panel-default">
        <div class="panel-heading">
            <h3 class="panel-title">Dược Thái Bình</h3>
        </div>
        <div class="panel-body">
            @using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl }))
            {
                @Html.AntiForgeryToken()
                @Html.ValidationSummary(true)
                <div class="form-group">
                    @Html.TextBoxFor(m => m.UserName, null, new { @placeholder = "Tài khoản", @class = "form-control" })
                    @Html.ValidationMessageFor(m => m.UserName)
                </div>

                <div class="form-group">
                    @Html.TextBoxFor(m => m.Password, null, new { @placeholder = "Mật khẩu", @class = "form-control", @type = "password" })
                    @Html.ValidationMessageFor(m => m.Password)
                </div>
                <div class="form-group">
                    <div class="col-sm-12 controls">
                        <input type="submit" value="Đăng nhập" class="btn btn-primary" />
                    </div>
                </div>
            }
        </div>
    </div>
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
    <script type="text/javascript">
        $(document).ready(function () {
            $(".UserName").focus();
            $(".navbar-inverse").hide();
        });
    </script>
}
